package com.hdaccp.shuiguoD.dao;

import com.hdaccp.shuiguoD.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao {
    public Role getRoleByUserName(String uname) ;
    public Role getRoleByUserId(long rid);
    public List<Role> queryAll();
    public long getTotalCount(@Param("rname") String rname);
    public List<Role> query(@Param("rname") String rname,@Param("limit") int limit,@Param("offset") int offset);
}
